#define ENABLE_PROFILER

#include <CdnProfiler.h>
#include <stdio.h>
#include <math.h>



void Test1()
{	
	int i=0;
	float s = 0.0f;
	while (i++<10000000)
	{
		s += sqrt(5.0f);
	}
	
}

void Test2()
{	
	int i=0;
	float s = 0.0f;
	while (i++<10000000)
	{
		s += atan2(5.0f, 5.0f);
	}
	
}

void _main()
{
	PROFILEFN(Test1(), "Test1");
	PROFILEFN(Test2(), "Test2");
	
}


void main()
{
	PROFILEINIT();
	PROFILEFRAMESTART();
	PROFILEFN(_main(), "main");
	PROFILEFRAMEEND();
	PROFILESHUTDOWN();
}